<template>
    <div class="departure">
        <Tabs value="leaveing" @on-click="changeRoute">
            <TabPane label="待离职" name="leaveing" >
                <router-view></router-view>
            </TabPane>
            <TabPane label="已离职" name="leaved">
               <router-view></router-view>
            </TabPane>
        </Tabs>
    </div>   
</template>
<script>
export default {
    data(){
        return {
            
        }
    },
    components:{

    },
    methods: {
        changeRoute(e){

            if(e == "leaveing"){
                this.$router.push("/personnel/relation/departure/leaving");
            }else{
                this.$router.push("/personnel/relation/departure/leaved");
            }
        }
    },
}
</script>
<style lang="scss" scoped src="./index.scss">
    
</style>